import request from '@/utils/request'
// 获取员工列表
export const ListEmployeesAPI = params => request.get('/sys/user', { params })
// 删除接口
export const DeleteStaffAPI = id => request.delete(`/sys/user/${id}`)
// 新增员工
export const NewEmployeeAPI = obj => request.post('/sys/user', obj)
// excel导入接口
export const ExcelImportAPI = data => request.post('/sys/user/batch', data)
// 修改员工接口
export const InformationAPI = data => request.put(`/sys/user/${data.id}`, data)
// {params:{id:id}}
//  {params}

// 分配员工角色
export const fetchAssignRole = data => request.put('/sys/user/assignRoles', data)
